package com.yunxi.sys.pojo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.lang.Nullable;
import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value="组织结构对象", description="组织结构对象")
public class OrgVO implements Serializable {

    @ApiModelProperty(value = "主键id")
    private String orgId;

    @ApiModelProperty(value = "公司代码")
    private String orgCode;

    @ApiModelProperty(value = "公司名称")
    private String orgName;

    @ApiModelProperty(value = "公司简称")
    private String orgSimpleName;

    @ApiModelProperty(value = "上级公司")
    private String pid;

    @ApiModelProperty(value = "直属公司ID")
    private String rid;

    @ApiModelProperty(value = "状态(1开启0关闭)")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @Nullable
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @Nullable
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    private String updateBy;

    @ApiModelProperty(value = "组织类型(0店端1厂端)")
    private Integer orgType;

    @ApiModelProperty(value = "全称")
    private String fullName;

    @ApiModelProperty(value = "是否存在子节点(1存在0不存在)")
    private transient String hasChild;

    @ApiModelProperty(value = "销售售后类型区分;1.pms; 2.ups")
    private String tenantId;

}
